<?php namespace App\Http\Controllers\Site;

use App\Http\Controllers\Controller;
use App\Item;

class ProController extends Controller
{
        public function getIndex($kind='Bride makeup')
        {
            $data = Item::where('kind',$kind)->paginate( config('site.pageSize'));
           return view('site.Pro.index',[
               'data'=>$data,
               'param'=>['kind'=>$kind],
           ]);
        }
        public function getShows($id=0)
        {
            $data= Item::where('id',$id)->get();
            Item::where('id',$id)->increment('clicks');
            return view('site.pro.shows',[
                'data'=>$data,
                'param'=>['id'=>$id],
            ]);
        }

}